/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.za.cput.kleintjes.question3.dip.violates.model;

import ac.za.cput.kleintjes.question3.dip.violates.services.TransactionDestination;
import ac.za.cput.kleintjes.question3.dip.violates.services.TransactionSource;

/**
 * @author Hughan.Kleintjes.hughanK@gmail.com
 */

public class BankAccount implements TransactionSource, TransactionDestination
{
    public String accountNumber;
    public double balance;

    public String getAccountNumber() {
        return accountNumber;
    }

    public void setAccountNumber(String accountNumber) {
        this.accountNumber = accountNumber;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }
    
    public void fundAddition(double value) {
        balance = balance + value;
    }

    public void fundDeduction(double value) {
        balance = balance - value;
    }
    
}